#ifndef PUSHGATEWAY_PUSH_UTILS_H
#define PUSHGATEWAY_PUSH_UTILS_H

#define EPS 1e-6                     // 浮点数去e
#define PUSH_CURLOPT_HTTPHEADER 9923 // curl_setopt方法, CURLOPT_HTTPHEADER常量值
#define PUSH_CURLOPT_POST 47         // curl_setopt方法, CURLOPT_POS常量值
#define PUSH_HISTOGRAM_DECIAML 6     // pushgateway柱状图时间保留小数位

#define INDEX_HTTP_CLIENT_HANDLED_TOTAL "http_client_handled_total"
#define INDEX_HTTP_CLIENT_HANDLING_SECCONDS "http_client_handling_seconds"
#define INDEX_SQL_USEGE_TOTAL "sql_usage_total"
#define INDEX_SQL_USEGE_ERROR_TOTAL "sql_usage_error_total"
#define INDEX_SQL_USEGE_DURATION_S "sql_usage_duration_s"

#define ITEM_LE "le"
#define ITEM_HTTP_CODE "http_code"
#define ITEM_HTTP_METHOD "http_method"
#define ITEM_HTTP_FULL_PATH "http_full_path"
#define ITEM_HTTP_PATH "http_path"
#define ITEM_HTTP_PEER "http_peer"
#define ITEM_HTTP_ADDRESS "http_address"
#define ITEM_SQL_ADDR "addr"
#define ITEM_SQL_NAME "name"
#define ITEM_SQL_ERROR "error"

#define VALUE_HTTP_METHOD_GET "GET"
#define VALUE_HTTP_METHOD_POST "POST"

#endif